package com.ruge.spring.cloud.gateway.dao;

import com.ruge.spring.cloud.gateway.pojo.AppCheckSignResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

/**
 * @author 嘿丷如歌
 * @version V1.0
 * @Description: AppServerAPIs
 * @date 2021/4/26 21:49
 */
@FeignClient(url = "${tima.appServer.url}", value = "checkSign", configuration = FormSupportConfig.class)
public interface AppServerAPIs {

    @RequestMapping(value = "${tima.appServer.uri.checkSign}", method = RequestMethod.POST, consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)
    AppCheckSignResponse checkSign(@RequestBody Map<String, ?> formParams);


}
